package com.tanhua.dubbo.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "recommend_sound")
public class RecommendSound implements Serializable {

    @Id
    private ObjectId id; //主键
    @Indexed
    private ObjectId voiceId; //语音id
    @Indexed
    private Double score = 0d; //推荐分数
    private Long created; //日期
    private Integer state;//1 听过 0 没听过
    private Long userId;//被推荐的用户的id

}
